<style>
    table
    {
     background-color: red;
    }
</style>

<table class="table table-bordered table-hover" border="1px" width="80%">
    <thead>
        <tr>
            <th> Short Url</th>
            <th> Long Url</th>
            <th> Date</th>
            <th> Total Hits</th>

        </tr>
    </thead>
    <tbody>
         <?php
                               foreach ($results as $data) {
                                    ?> 

        <tr>
            <td><?php echo $data->short_url; ?></td>
            <td><?php echo $data->long_url; ?></td>
            <td><?php echo $data->create_time; ?></td>
            <td><?php echo $data->hits; ?></td>
        </tr>
 <?php } ?>
    </tbody>

</table>

